package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ribbon-consumer", fallback = LessonServiceFallback.class)
public interface LessonService {

    @RequestMapping(value = "/lesson", method = RequestMethod.GET)
    Result query(@RequestParam("unitId") String unitId);

}
